package org.finmanager.core;

import javax.swing.*;

/**
 * Created by Kelvin on 2/4/2014.
 */

//The UI of the "+" button is called
public class ItemInputUIAdd extends AbstractItemInputUI {
	public ItemInputUIAdd(ItemManagerController itemManagerController, ComboBoxModel listModel) {
		super(itemManagerController, listModel);

		getOkayButton().setActionCommand(ItemManagerController.ADD_ITEM);
	}

	public ItemInputUIAdd(ItemManagerController itemManagerController, ComboBoxModel listModel, Category category) {
		this(itemManagerController, listModel);

		getCategoryComboBox().setSelectedItem(category);
	}
}
